#ifndef _HCC_ERROR_CODE_MID_CMD_LINE_H_
#define _HCC_ERROR_CODE_MID_CMD_LINE_H_

#include "ofc/ofc_types.h"
#include "hcc/hcc_error_code.h"
#include "hcc/hcc_error_code_mid.h"

#ifdef __cplusplus
extern "C" {
#endif

// 不含行号的错误码生成
#define HCC_MAKE_MID_CMD_LINE_ERROR(error_code) (int)HCC_MAKE_MID_WARE_ERROR(kHccMidWareCmdLine, error_code, HCC_ERROR_LEVEL_ERROR)
// 含行号的错误码生成
#define HCC_MAKE_MID_CMD_LINE_ERROR_LINE(error_code) (int)HCC_ERROR(HCC_MAKE_MID_WARE_ERROR(kHccMidWareCmdLine, error_code, HCC_ERROR_LEVEL_ERROR))


/**
 * CmdLine模块定义:（shell组件中，错误码没有单独文件）
 */
enum THccMidCmdLineTag
{
	kHccMidCmdLineSuccess	=	HCC_ERROR_SUCCESS,			///< 成功,没有错误
	kHccMidCmdLineParam	=	HCC_MAKE_MID_CMD_LINE_ERROR(0),			///<参数错误
	kHccMidCmdLineComm	=	HCC_MAKE_MID_CMD_LINE_ERROR(1),			///<通讯错误
	kHccMidCmdLineCallBack	=	HCC_MAKE_MID_CMD_LINE_ERROR(2),			///<回调函数未设置
	kHccMidCmdLineOpened	=	HCC_MAKE_MID_CMD_LINE_ERROR(3),			///<已打开
	kHccMidCmdLineClosed	=	HCC_MAKE_MID_CMD_LINE_ERROR(4),			///<已关闭
	kHccMidCmdLineFail	=	HCC_MAKE_MID_CMD_LINE_ERROR(5),			///<操作失败
	kHccMidCmdLineTimeout	=	HCC_MAKE_MID_CMD_LINE_ERROR(6),			///<处理超时
	kHccMidCmdLineNoData	=	HCC_MAKE_MID_CMD_LINE_ERROR(7),			///<没有需要处理的数据
};
typedef enum THccMidCmdLineTag THccMidCmdLine;


typedef Int32 THccMidCmdLineLine;
#define kHccMidCmdLineSuccessLine	HCC_ERROR_SUCCESS	///< 成功,没有错误
#define kHccMidCmdLineParamLine	HCC_MAKE_MID_CMD_LINE_ERROR_LINE(0)	///<参数错误
#define kHccMidCmdLineCommLine	HCC_MAKE_MID_CMD_LINE_ERROR_LINE(1)	///<通讯错误
#define kHccMidCmdLineCallBackLine	HCC_MAKE_MID_CMD_LINE_ERROR_LINE(2)	///<回调函数未设置
#define kHccMidCmdLineOpenedLine	HCC_MAKE_MID_CMD_LINE_ERROR_LINE(3)	///<已打开
#define kHccMidCmdLineClosedLine	HCC_MAKE_MID_CMD_LINE_ERROR_LINE(4)	///<已关闭
#define kHccMidCmdLineFailLine	HCC_MAKE_MID_CMD_LINE_ERROR_LINE(5)	///<操作失败
#define kHccMidCmdLineTimeoutLine	HCC_MAKE_MID_CMD_LINE_ERROR_LINE(6)	///<处理超时
#define kHccMidCmdLineNoDataLine	HCC_MAKE_MID_CMD_LINE_ERROR_LINE(7)	///<没有需要处理的数据

#ifdef __cplusplus
}  // extern "C"
#endif

#endif // _HCC_ERROR_CODE_MID_CMD_LINE_H_
/**
 * @
 */
